<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>el获取域中的数据</title>
</head>
<body>
<%--
四大域:pageContext request session application
九大内置对象:
pageContext
request
session
application

response
out
config
page
exception

--%>

    <%
        //在域中存储数据
        session.setAttribute("name","李四");

        request.setAttribute("name","张三");
        session.setAttribute("age","23");

        request.setAttribute("str","");

    %>

<h3>el获取值</h3>
${requestScope.name}<br>
${sessionScope.age}<br>
${sessionScope.haha}<br>

${name}<br>
${sessionScope.name}<br>




</body>
</html>
